<template>
</template>
<script>
import { confuturesCap, conCurrency, addBill } from '../../../../../api/url_lcc';
export default {
  //期初开账-期货费用
  name: "costFutures",
  data() {
    return {
     
    };
  },
  methods: {
    //   开账
    KZLiat(){
        let params = {
            operation: "MOD"
            };
        addBill(params).then(res => {
            if (res.errcode === "1") {
                this.$message.success(res.result[0].errormsg);
            } else {
                this.$message.error(res.msg);
            }
        });
    },
       // 开账提示信息
    KZ() {
       this.$confirm('开账后，期初数据不允许修改，是否确定开账?', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(() => {
            this.KZLiat()
        }).catch(() => {
          this.$message({
            type: 'info',
            message: '已取消开账'
          });          
        });
      },
  },
  mounted() {
    this.KZ();
   }
};
</script>
